package com.starsky.websocket.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

//import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * 实时刷新属性
 */
//@RefreshScope
@ConfigurationProperties(prefix = "websocket")
@Configuration
public class WebSocketConfig {

    //处理方式 1-多对多 2-点对点
    private int nettyHandler;

    public int getNettyHandler() {
        return nettyHandler;
    }

    public void setNettyHandler(int nettyHandler) {
        this.nettyHandler = nettyHandler;
    }
}
